package com.imooc.o2o.util;

/**
 * @author 徐老板
 * @date 2020/1/1   11:03
 */
public class PathUtil {
    final static String separator = System.getProperty("file.separator");
    public static String getImgBasePath(){

        String os = System.getProperty("os.name");
        String bathPath="";
        if (os.toLowerCase().startsWith("win")){
            bathPath="D:/projectdev/image/";
        }else {
            bathPath="/home/xulaoban/image/";
        }
        bathPath.replace("/", separator);
        return bathPath;
    }

    public static String getShopImagePath(long shopId){
        String imagePath="upload/item/shop/"+shopId+"/";
        return imagePath.replace("/",separator );
    }


}
